package com.hebust.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Table(name = "course")
public class Course {
    @Id
    private Integer coId;

    private Integer coTeacherId;

    private String coName;

    private Integer coGrade;

    private String coTime;

    private String coLocation;

    private Integer coCredit;

    private Integer coSelectCount;

    private Integer coMaxSize;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date coExamDate;

    private String coExamLocation;

}
